<template>
  <div class="box">
    <el-tabs v-model="val" @tab-click="handleClick">
      <el-tab-pane label="配送商管理" name="1">
        <distributor-maintenance />
      </el-tab-pane>
      <el-tab-pane label="车辆管理" name="2">
        <vehicle-management />
      </el-tab-pane>
      <el-tab-pane label="地址管理" name="3">
        <address-maintenance />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import DistributorMaintenance from './distributor-maintenance.vue'
import VehicleManagement from './vehicle-management.vue'
import AddressMaintenance from './address-maintenance.vue'
export default {
  name: 'distributor',
  components: { DistributorMaintenance,VehicleManagement,AddressMaintenance},
  props: {},
  data() {
    return {
      val: '1'
    }
  },
  filters: {},
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  beforeDestroy() {},
  methods: {
    handleClick(tab) {
      this.val = tab._props.name
    }
  }
}
</script>

<style scoped lang="scss">
.box {
  padding: 20px;
}
</style>
